package com.jtapps.rememberme;

import android.app.Activity;
import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

public class RememberMe  extends TabActivity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        TabHost tabHost = getTabHost();

        // Tab for Task
        TabHost.TabSpec taskspec = tabHost.newTabSpec("Aufgaben");
        // setting Title and Icon for the Tab
        taskspec.setIndicator("Aufgaben", getResources().getDrawable(R.drawable.ic_menu_agenda));
        Intent photosIntent = new Intent(this, TaskActivity.class);
        taskspec.setContent(photosIntent);

        // Tab for bookmark
        TabHost.TabSpec bookmarkspec = tabHost.newTabSpec("Lesezeichen");
        bookmarkspec.setIndicator("Lesezeichen",getResources().getDrawable(R.drawable.ic_input_get) );
        Intent songsIntent = new Intent(this, BookmarkActivity.class);
        bookmarkspec.setContent(songsIntent);

        // Tab for Notes
        TabHost.TabSpec notesspec = tabHost.newTabSpec("Notizen");
        notesspec.setIndicator("Notizen", getResources().getDrawable(R.drawable.ic_menu_compose));
        Intent videosIntent = new Intent(this, NotesActivity.class);
        notesspec.setContent(videosIntent);

        // Adding all TabSpec to TabHost
        tabHost.addTab(taskspec); // Adding task tab
        tabHost.addTab(bookmarkspec); // Adding bookmark tab
        tabHost.addTab(notesspec); // Adding notes tab
    }
}
